package com.xiaoluo.lottery.service;

import com.xiaoluo.lottery.entity.PlayRecord;
import com.xiaoluo.lottery.entity.Player;
import com.xiaoluo.lottery.filter.PlayRecordFilter;
import com.xiaoluo.lottery.vo.DataPage;
import com.xiaoluo.lottery.vo.PlayRecordVo;

/**
 * Created by Caedmon on 2016/4/5.
 */
public interface PlayerService {
    Player getPlayer(String openId);
    Player savePlayer(Player player);
    DataPage<PlayRecordVo> getPlayerRecords(PlayRecordFilter filter);
    double updateBalance(String openId,double amount);
    int getOnlineNum();
}
